#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Sunflow framework"""

from PySFML import *
import os.path
import gettext

fps = 50
screenSize = (800, 500)

def init():
    """Initialize the framework."""
    global window, fps, font
    
    gettext.install('sunflow', 'share/locale', unicode=1)
    
    window = sf.RenderWindow(sf.VideoMode(screenSize[0], screenSize[1], 0), "Sunflow", sf.Style.Close, 0)
    window.SetBackgroundColor(sf.Color(0, 0, 0, 255))
    window.SetFramerateLimit(fps)
    
    font = sf.Font()
    font.LoadFromFile(os.path.join('share', 'fonts', 'AlteHaasGroteskBold.ttf'), 80)

def close():
    """Close the framework."""
    pass

